﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AccountBankWebserviceManager.ascx.cs"
    Inherits="TMDT_Nhom1A.UserControl_Admin.AccountBankWebserviceManager" %>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <div class="module_round_box_inner">
            <div class="module_round_box_inner2">
                <div class="s5_mod_h3_1">
                    <div class="s5_mod_h3_2">
                        <h3 class="s5_mod_h3">
                            <span class="s5_h3_first">Quản Lý tài khoản Bank Webservice</span>
                        </h3>
                    </div>
                </div>
                <!-- content -->
                <asp:GridView ID="gvAccountBankWSList" runat="server" Width="100%" AutoGenerateColumns="False"
                    OnRowCommand="gvAccountBankWSList_RowCommand" OnRowEditing="gvAccountBankWSList_RowEditing">
                    <Columns>
                        <asp:BoundField DataField="Username" HeaderText="username">
                            <ItemStyle Width="225px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Password" HeaderText="password">
                            <ItemStyle Width="225px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="BankName" HeaderText="Tên Ngân Hàng">
                            <ItemStyle Width="225px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="MaTaiKhoan" HeaderText="Số Thẻ Thanh Toán của Biz">
                            <ItemStyle Width="225px" />
                        </asp:BoundField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:ImageButton ID="btEdit" Height="30" Width="30" CommandName="Edit" CommandArgument='<%# Eval("Id") %>'
                                    ImageUrl="~/images/edit.png" runat="server" ToolTip="Chỉnh sửa" />
                                <asp:ImageButton ID="btDelete" Height="30" Width="30" CommandName="btDelete" CommandArgument='<%# Eval("Id") %>'
                                    ImageUrl="~/images/delete-icon.png" OnClientClick="if(!confirm('Bạn có muốn xoá không ?')) return false;"
                                    runat="server" ToolTip="Xoá" />
                            </ItemTemplate>
                            <ItemStyle Width="100px" HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle CssClass="HeaderGrid" />
                </asp:GridView>
                <asp:ImageButton ID="btAdd" CommandName="Edit" ImageUrl="~/images/add-icon.png" runat="server"
                    OnClick="btAdd_Click" ToolTip="Thêm" />
                <asp:Label ID="LbThongBao" runat="server" Text=""></asp:Label>
                <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                    <ProgressTemplate>
                        Đang lấy dữ liệu từ server...
                        <img src="../images/ajax-loader.gif" />&nbsp;&nbsp;
                    </ProgressTemplate>
                </asp:UpdateProgress>
                <!-- End content -->
                &nbsp;
                <br />
                <br />
                
               
            </div>
        </div>
        <div class="module_round_box_inner">
            <div class="module_round_box_inner2">
                <div class="s5_mod_h3_1">
                    <div class="s5_mod_h3_2">
                        <h3 class="s5_mod_h3">
                            <span class="s5_h3_first">Quản Lý tài khoản Bank Webservice</span>
                        </h3>
                    </div>
                </div>
                <asp:DataList ID="DlAddUpdateAccountBankWS" runat="server" OnItemCommand="DlAddUpdateAccountBankWS_ItemCommand">
                    <ItemTemplate>
                        <asp:Label Text='<%# Eval("Id") %>' Visible="false" ID="id" runat="server" />
                        <div class="label_register">
                            Username:
                        </div>
                        <div class="textbox_register">
                            <asp:TextBox CssClass="tb_2" Width="300px" ID="tbUsername" Text='<%# Eval("Username") %>'
                                runat="server"></asp:TextBox>
                        </div>
                        <div class="label_register">
                            Password:
                        </div>
                        <div class="textbox_register">
                            <asp:TextBox CssClass="tb_2" Width="300px" ID="tbPassword" Text='<%# Eval("Password") %>'
                                runat="server"></asp:TextBox>
                        </div>
                        <div class="label_register">
                            Số Thẻ Thanh Toán của Biz:
                        </div>
                        <div class="textbox_register">
                            <asp:TextBox CssClass="tb_2" Width="300px" ID="tbMaTaiKhoan" Text='<%# Eval("MaTaiKhoan") %>'
                                runat="server"></asp:TextBox>
                        </div>
                        <br />
                        <br />
                        <div style="width: 100%; margin-left: 300px;">
                            <asp:ImageButton CommandName="Add" ID="btAdd" Height="30" Width="30" ImageUrl="~/images/add-icon.png"
                                runat="server" ToolTip="Thêm" />
                            <asp:ImageButton CommandName="Cancel" ID="btCancel" Height="30" Width="30" ImageUrl="~/images/delete-icon.png"
                                runat="server" ToolTip="Cancel" />
                        </div>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:Label Text='<%# Eval("Id") %>' Visible="false" ID="id" runat="server" />
                        <div class="label_register">
                            Username:
                        </div>
                        <div class="textbox_register">
                            <asp:TextBox CssClass="tb_2" Width="300px" ID="tbUsername" Text='<%# Eval("Username") %>'
                                runat="server"></asp:TextBox>
                        </div>
                        <div class="label_register">
                            Password:
                        </div>
                        <div class="textbox_register">
                            <asp:TextBox CssClass="tb_2" Width="300px" ID="tbPassword" Text='<%# Eval("Password") %>'
                                runat="server"></asp:TextBox>
                        </div>
                        <div class="label_register">
                            Số Thẻ Thanh Toán của Biz:
                        </div>
                        <div class="textbox_register">
                            <asp:TextBox CssClass="tb_2" Width="300px" ID="tbMaTaiKhoan" Text='<%# Eval("MaTaiKhoan") %>'
                                runat="server"></asp:TextBox>
                        </div>
                        <br />
                        <br />
                        <div style="width: 100%; margin-left: 300px;">
                            <asp:ImageButton CommandName="Update" ID="btUpdate" Height="30" Width="30" ImageUrl="~/images/Edit-Document-icon.png"
                                runat="server" ToolTip="Cập nhật" />
                            <asp:ImageButton CommandName="Cancel" ID="btCancel" Height="30" Width="30" ImageUrl="~/images/delete-icon.png"
                                runat="server" ToolTip="Cancel" />
                        </div>
                    </EditItemTemplate>
                </asp:DataList>
            </div>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
